package day1206zy.day1206zy23;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class demo23 {
    public static void main(String[] args) throws IOException {
        Properties p = new Properties();
        p.setProperty("pid","10");
        p.setProperty("name","123123");
        p.setProperty("age","18");
        FileWriter out = new FileWriter("src\\day1206zy23\\mapdata.properties");
        p.store(out,"src\\day1206zy23\\mapdata.properties");
        out.close();
    }
}
